package com.training.admin.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.demo2do.core.persistence.GenericDaoSupport;
import com.demo2do.core.persistence.support.QueryFilter;
import com.training.admin.entity.project.TrainingSurvey;
import com.training.admin.service.TrainingSurveyService;
/**
 * 
 * @author Rockett
 *
 */
@Service("trainingSurveyService")
public class TrainingSurveyServiceImpl extends DataServiceImpl<TrainingSurvey> implements TrainingSurveyService{

	@Autowired
	private GenericDaoSupport genericDaoSupport;
	
    /* (non-Javadoc)
	 * @see com.training.admin.service.TrainingSurveyService#list(com.demo2do.core.persistence.support.QueryFilter)
	 */
	@SuppressWarnings("unchecked")
    @Override
	public List<TrainingSurvey> list(QueryFilter queryFilter) {
		return genericDaoSupport.searchForList("FROM TrainingSurvey WHERE disabled = false" + queryFilter.clauseSentence(),queryFilter.parameters());
	}


}
